package thinkinjava1.ch07;

/**
 * Created by 顾博君 on 2017/2/15.
 */

abstract public class Event {
    private long evtTime;

    public Event(long eventTime) {
        evtTime = eventTime;
    }

    public boolean ready() {
        return System.currentTimeMillis() >= evtTime;
    }

    abstract public void action();

    abstract public String description();
}
